package com.qf.game.servlet;

import com.qf.framwork.annotation.ResponseBody;
import com.qf.framwork.base.BaseServlet;
import com.qf.game.entity.TongjiSex;
import com.qf.game.service.PlayerService;

import javax.servlet.annotation.WebServlet;
import java.util.List;

/**
 * description:
 * author: Ken
 * 公众号：Java架构栈
 */
@WebServlet("/tongjiServlet")
public class TongjiServlet extends BaseServlet {

    private PlayerService playerService = new PlayerService();

    /**
     * 性别统计数据
     * @return
     */
    @ResponseBody
    public List<TongjiSex> tongjisex(){
        List<TongjiSex> sexDatas = playerService.getSexDatas();
        return sexDatas;
    }
}
